package com.sudo.demo.security.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * jwt相关参数
 *
 * @author DayDayUp
 * create on 2023-08-10
 **/
@Data
@Configuration
@ConfigurationProperties(prefix = "jwt-data")
public class JwtProperties {
    /**
     * jwt加密密钥
     */
    private String secret;

    /**
     * jwt的过期时间，单位秒(1000*60s*60min*24h*7day = 604800)
     */
    private Long expiration;

}
